<template>
   <div class="app-container pt20">
       <TreeItem :mapHeight="780" :treeData='LineageList'></TreeItem>
   </div>
</template>
<script>
import {getTableMapList} from "@/api/dataManagement/system/info";
import TreeItem from "../TreeItem/associatMap";
// setTypeListSelect
export default {
   name: "associatMap",
   props: {
      treeData: {
         type: Object,
         default: () => {}
      },
      mapHeight: [String, Number]
   },
   components:{TreeItem},
   data() {
      return {
         LineageList:[],
      };
   },
   mounted() {
      this.getTableMapList();
   },
   methods: {
      getTableMapList(){
         var dirId= sessionStorage.getItem('dirId');
         getTableMapList({dirId:this.$route.query.dirId,'tableId':this.$route.query.tableId}).then(res=>{
            this.LineageList = res.data;
         })
      },
   }
};
</script>